SecureCRT SSH 7.0.0连接Kali 2021报错Key exchange failed 您所在的位置:网站首页 ssh报错key exchange failed SecureCRT SSH 7.0.0连接Kali 2021报错Key exchange failed

SecureCRT SSH 7.0.0连接Kali 2021报错Key exchange failed

2024-01-18 14:25| 来源: 网络整理| 查看: 265

SecureCRT SSH 7.0.0连接Kali 2021报错Key exchange failed No compatible key exchange method. The server supports these methods: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256 在这里插入图片描述 错误原因是SecureCRT 7.0客户端支持的和kali作为ssh服务端支持的SSH秘钥交换算法不匹配。 Secure CRT 7.0的默认支持key exchange算法: 处理办法 修改 /etc/ssh/sshd_config配置文件,增加如下一行,使 新版本的Kali Linux支持老版本的秘钥交换算法。 KexAlgorithms [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1

补充内容 查看服务器支持的秘钥交换算法 nmap --script ssh2-enum-algos -sV -p

──(root💀kali)-[~] └─# nmap --script ssh2-enum-algos -sV -p 22 localhost Starting Nmap 7.91 ( https://nmap.org ) at 2022-07-29 14:14 CST Nmap scan report for localhost (127.0.0.1) Host is up (0.000027s latency). Other addresses for localhost (not scanned): ::1

PORT STATE SERVICE VERSION 22/tcp open ssh OpenSSH 8.4p1 Debian 6 (protocol 2.0) | ssh2-enum-algos: | kex_algorithms: (9) | curve25519-sha256 | [email protected] | ecdh-sha2-nistp256 | ecdh-sha2-nistp384 | ecdh-sha2-nistp521 | diffie-hellman-group-exchange-sha256 | diffie-hellman-group16-sha512 | diffie-hellman-group18-sha512 | diffie-hellman-group14-sha256 | server_host_key_algorithms: (5) | rsa-sha2-512 | rsa-sha2-256 | ssh-rsa | ecdsa-sha2-nistp256 | ssh-ed25519 | encryption_algorithms: (6) | [email protected] | aes128-ctr | aes192-ctr | aes256-ctr | [email protected] | [email protected] | mac_algorithms: (10) | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | [email protected] | hmac-sha2-256 | hmac-sha2-512 | hmac-sha1 | compression_algorithms: (2) | none |_ [email protected] Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有